package com.wiloon.java8x.thread.atomic;

import java.util.concurrent.atomic.AtomicInteger;

/*
 * Created by roy on 8/3/17;
 */
public class AtomicIntegerX {
    public static void main(String[] args) {
        AtomicInteger i = new AtomicInteger(5);

        System.out.println(i.get());
        System.out.println(i.decrementAndGet());
        System.out.println(i.get());
    }
}
